home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1998 July
/
EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso
/
earcd
/
phase5
/
ppcrelease
/
tools
/
smakefile
< prev
Wrap
Makefile
|
1998-02-21
|
7KB
|
312 lines
#####################################################################
# Makefile for SAS Make
# Copyright © 1997 Ralph Schmidt
#
# Thanks go to Osma for an example makefile
#
#####################################################################
#
# $Id: makefile,v 42.10 1996/03/19 21:17:15 laire Exp laire $
# $Log: makefile,v $
# Revision 42.10 1996/03/19 21:17:15 laire
# changed task to tasks
#
#
#####################################################################
#
# Standard Programs
#
TAGS = Tools:ctags
CI = ci
CO = co
RELOC32TO16 = sys:util/reloc32to16
DATA2CODE = Tools:data2code
ABSLINK = Tools:abslink
STRIP = Tools:strip
COPY = c:copy
FOR = Tools:foreach
#####################################################################
#
# Target Machine
#
#CODETYPE = CODE_PPC
CODETYPE = CODE_M68k
TARGET = M68k
#####################################################################
#
# Options
#
IPATH = IDIR=include: IDIR=/include/
GCCIPATH = -Iinclude: -I/include/
DEFINES = DEFINE=$(CODETYPE)
#DEFINES = DEFINE=$(CODETYPE) DEFINE=EXEC_68060
ASMFLAGS = -sa -w2- -wo- -M4000 -x -d$(CODETYPE)=1 -dEXEC_68060=0
APATH = -iasm: -i/include
#####################################################################
#
# Machine Configuration
#
ASM = basm $(ASMFLAGS) $(APATH)
DEBUG = DEBUG=LINE
#OPTFLAGS = OPTIMIZEPEEP OPTIMIZE
OPTFLAGS =
CFLAGS = STRINGMERGE NOSTACKCHECK PARMS=REGISTER CPU=68030 MATH=8 DATA=FARONLY CODE=NEAR DATA=FARONLY DEFINE=$(CODETYPE)
CPPFLAGS =
CC = sc $(CFLAGS) $(OPTFLAGS) $(DEBUG) $(DEFINES) $(IPATH)
LINK = slink
#LINK = DevTools:Apps/LK1.06/lk SINGLEHUNK
OBJECT = OBJNAME=
#####################################################################
#
SRC =
LIBSRC = Lib/
LIBTEST = Test/
#####################################################################
#
# Default rules
#
.c.o$(TARGET):
$(CC) $(OBJECT)$*.o$(TARGET) $*.c
.asm.o$(TARGET):
$(ASM) -o$*.o$(TARGET) $*.asm
#####################################################################
#
# Versions
#
VERSION = 44
#####################################################################
#
# Project Output
#
all: PPCSignalTask\
PPCShowTasks\
PPCLoad\
PPCLoadTimer\
PPCInfos\
PPCDebug\
SetDebugSpeed
#####################################################################
#
# Project Install
#
#####################################################################
#
# Internal Source Updater
#
INTERNAL: $(INTERNALINCS)
copy $(INTERNALINCS) TO PowerUP:src/include/internal/
#####################################################################
#
# RCS - store current source version in the RCS database
#
CHECKIN:
$(FOR) "#?.c" $(CI) -l$(VERSION) -x,v/ $$
$(FOR) "#?.h" $(CI) -l$(VERSION) -x,v/ $$
$(FOR) "#?.asm" $(CI) -l$(VERSION) -x,v/ $$
$(FOR) "#?.i" $(CI) -l$(VERSION) -x,v/ $$
$(FOR) "#?.txt" $(CI) -l$(VERSION) -x,v/ $$
$(FOR) "#?.doc" $(CI) -l$(VERSION) -x,v/ $$
$(FOR) "#?.fd" $(CI) -l$(VERSION) -x,v/ $$
$(FOR) makefile $(CI) -l$(VERSION) -x,v/ &
#####################################################################
#
# Tags - Create a tags file to get function reference
#
TAGS: $(SRCS) $(INCS)
$(TAGS) $(SRCS) $(INCS)
#####################################################################
#
# Project Global Source Files
#
SRCS =
GLOBAL =
ASMGLOBAL =
INTERNALINCS =
PPCSignalTask.o: $(SRC)PPCSignalTask.c $(GLOBAL) $(SRC)PPCSignalTask_VERSION.h
PPCShowTasks.o: $(SRC)PPCShowTasks.c $(GLOBAL) $(SRC)PPCShowTasks_VERSION.h
PPCLoad.o: $(SRC)PPCLoad.c $(GLOBAL) $(SRC)PPCLoad_VERSION.h
PPCLoadTimer.o: $(SRC)PPCLoadTimer.c $(GLOBAL) $(SRC)PPCLoadTimer_VERSION.h
PPCInfos.o: $(SRC)PPCInfos.c $(GLOBAL) $(SRC)PPCInfos_VERSION.h
PPCDebug.o: $(SRC)PPCDebug.c $(GLOBAL) $(SRC)PPCDebug_VERSION.h
SetDebugSpeed.o: $(SRC)SetDebugSpeed.c $(GLOBAL) $(SRC)SetDebugSpeed_VERSION.h
#####################################################################
#
PPC_ASRC =
#####################################################################
#
M68k_ASRC =
#####################################################################
#
# Project PPC Object files
#
PPC_OBJS =
#####################################################################
#
# Project M68k Object files
#
M68k_OBJS =
#####################################################################
#
# Global Project Includes
#
INCS =
PROTOS =
INCS =
PROTOS =
MISC =
#####################################################################
#
# Link Project
#
UPDATE:
BUMPPPCSignalTask:
bumprev2 VERSION=$(VERSION) FILE=$(SRC)PPCSignalTask_VERSION TAG=PPCSignalTask ADD="© 1997 by Phase5, written by Ralph Schmidt" TYPE="Beta"
PPCSignalTask: PPCSignalTask.o
$(LINK) \
<WITH <
lib:c.o PPCSignalTask.o TO PPCSignalTask LIB lib:scnb.lib lib:amiga.lib lib:debug.lib
<
BUMPPPCShowTasks:
bumprev2 VERSION=$(VERSION) FILE=$(SRC)PPCShowTasks_VERSION TAG=PPCShowTasks ADD="© 1997 by Phase5, written by Ralph Schmidt" TYPE="Beta"
PPCShowTasks: PPCShowTasks.o
$(LINK) \
<WITH <
lib:c.o PPCShowTasks.o TO PPCShowTasks LIB lib:scm881nb.lib lib:scnb.lib lib:amiga.lib lib:debug.lib
<
BUMPPPCLoad:
bumprev2 VERSION=$(VERSION) FILE=$(SRC)PPCLoad_VERSION TAG=PPCLoad ADD="© 1997 by Phase5, written by Ralph Schmidt" TYPE="Beta"
PPCLoad: PPCLoad.o
$(LINK) \
<WITH <
lib:c.o PPCLoad.o TO PPCLoad LIB lib:scnb.lib lib:amiga.lib lib:debug.lib
<
BUMPPPCLoadTimer:
bumprev2 VERSION=$(VERSION) FILE=$(SRC)PPCLoadTimer_VERSION TAG=PPCLoadTimer ADD="© 1997 by Phase5, written by Ralph Schmidt" TYPE="Beta"
PPCLoadTimer: PPCLoadTimer.o
$(LINK) \
<WITH <
lib:c.o PPCLoadTimer.o TO PPCLoadTimer LIB lib:scm881nb.lib lib:scnb.lib lib:amiga.lib lib:debug.lib
<
BUMPPPCInfos:
bumprev2 VERSION=$(VERSION) FILE=$(SRC)PPCInfos_VERSION TAG=PPCInfos ADD="© 1997 by Phase5, written by Ralph Schmidt" TYPE="Beta"
PPCInfos: PPCInfos.o
$(LINK) \
<WITH <
lib:c.o PPCInfos.o TO PPCInfos LIB lib:scnb.lib lib:amiga.lib lib:debug.lib
<
BUMPPPCDebug:
bumprev2 VERSION=$(VERSION) FILE=$(SRC)PPCDebug_VERSION TAG=PPCDebug ADD="© 1997 by Phase5, written by Ralph Schmidt" TYPE="Beta"
PPCDebug: PPCDebug.o
$(LINK) \
<WITH <
lib:c.o PPCDebug.o /ArgParser/ArgParser.o TO PPCDebug LIB lib:scm881nb.lib lib:scnb.lib lib:amiga.lib lib:debug.lib
<
BUMPSETDEBUGSPEED:
bumprev2 VERSION=$(VERSION) FILE=$(SRC)SetDebugSpeed_VERSION TAG=SetDebugSpeed ADD="© 1997 by Phase5, written by Ralph Schmidt" TYPE="Beta"
SetDebugSpeed: SetDebugSpeed.o $(SRC)SetDebugSpeed_VERSION.h
$(LINK) \
<WITH <
lib:c.o SetDebugSpeed.o TO SetDebugSpeed LIB lib:scnb.lib lib:amiga.lib lib:debug.lib
<